<template>
  <div ref="bar" class="warp" />
</template>

<script>
import * as echarts from 'echarts'
export default {
  name: 'Barcharts',
  mounted() {
    var myChart = echarts.init(this.$refs.bar)
    myChart.setOption({
      xAxis: {
        type: 'category'
      },
      yAxis: {
        type: 'value',
        show: false
      },
      tooltip: {},
      series: [
        {
          data: [150, 200, 150, 80, 70, 110, 130],
          type: 'bar'
        }
      ]
    })
  }
}
</script>

<style scoped>
.warp{
  width: 100%;
  height: 50px;
}
</style>
